<?php
class mod_index extends phpxwsystem
{
    var $datalist=array(
        array('goods_name'=>'pen','price'=>'5.50','gid'=>'1'),
        array('goods_name'=>'cat','price'=>'7.50','gid'=>'2'),
        array('goods_name'=>'Google chrome','price'=>'15.50','gid'=>'4'),
        array('goods_name'=>'class','price'=>'9.50','gid'=>'6'),
        array('goods_name'=>'home','price'=>'0.50','gid'=>'8'),
        array('goods_name'=>'marry','price'=>'20.50','gid'=>'7'),
        );
	// 默认方法
	function action_index(){
        $this->_view['goodsname']="这是一个测试产品";
        $this->_view['title']=$this->_view['goodsname'].'的标题';
        $this->_view['goodslist']=$this->datalist;
        $this->_viewname='index';
    }
    
// 默认方法
    function action_view(){
        $this->_view['goodsname']="这是一个测试产品详细页";
        $this->_view['title']=$this->_view['goodsname'].'的标题';
        $this->_viewname='index_view';
    }
}
